package com.example.login.Mapper;

import com.example.login.Pojo.Seller;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface SellerMap {
    @Select("Select * from xtshop_seller where username=#{username}")
    Seller getSellerByName(String username);
    @Insert("insert into xtshop_seller (username,file,password,store_name,store_file,grade,state) values(#{username},'',#{password},#{storeName},'',0,0)")
    void Register(String username,String password,String storeName);

}
